package com.artconcurencybook.chapter07;import java.util.concurrent.atomic.AtomicInteger;/** *  * @author tengfei.fangtf */public class AtomicIntegerTest {    static AtomicInteger ai = new AtomicInteger(1);    public static void main(String[] args) {        System.out.println(ai.getAndIncrement());        System.out.println(ai.get());    }}